package net.xfok.chemical;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Main extends Activity implements OnClickListener{
    /** Called when the activity is first created. */
	private Button hwpcx;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        hwpcx=(Button)findViewById(R.id.hwpcx);
        hwpcx.setOnClickListener(this);      
    }

	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.hwpcx:
			Intent intent=new Intent(this,Sub.class);
			startActivity(intent);
		default:
			break;
		}
	}
}